package com.bidevalution.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bidevalution.dao.entity.BeSectionStepJob;

public interface BeSectionStepJobMapper {
    int deleteByPrimaryKey(String seqId);

    int insert(BeSectionStepJob record);

    int insertSelective(BeSectionStepJob record);

    BeSectionStepJob selectByPrimaryKey(String seqId);

    int updateByPrimaryKeySelective(BeSectionStepJob record);

    int updateByPrimaryKey(BeSectionStepJob record);
    
    List<BeSectionStepJob> selectListByStepId(String sectionStepId);
	
    List<BeSectionStepJob> selectUnFinishList(BeSectionStepJob record);
    
    void deleteBySectionId(String sectionId);

    /**
     * 根据环节id更新环节任务状态
     *
     * @param record
     * @return
     */
    int updateStepJobByStepId(BeSectionStepJob record);

    /**
     * 根据标段id更新环节任务状态
     *
     * @param record
     * @return
     */
    int updateStepJobBySectionId(BeSectionStepJob record);

    /**
     * 查询当天开标项目需要提前执行的任务且处于可以执行状态
     *
     * @return
     */
    List<BeSectionStepJob> queryAdvanceExecuteJobToday();
}